<template>
  <div class="home">
      <el-button type="warning" @click="goRoots">首页</el-button>
      <div v-if="user_status == 0">
          <h2>用户信息：</h2>
          <p>用户名：{{user_login}}</p>
          <p>用户昵称：{{user_nickname}}</p>
          <p>邮箱：{{user_email}}</p>
          <a href="/APIloginout">退出登录</a>
      </div>
      <div v-if="user_status != 0">
          您未登录，请
          <el-button type="primary" @click="goLogin">登录</el-button>
      </div>
  </div>
</template>
<script>
import home from './home'
export default home
</script>
<style lang="less" scoped>
    .home {
        height: 100%;
        width: 100%;
    }
</style>